<template>
  <div>
    <div class="head">
      <router-link to="/login">登录</router-link>
      <router-link to="/register">注册</router-link>
      <router-link to="/text">文章</router-link>
      <router-link to="/table">列表</router-link>
    </div>
    
    <div class="body">
      <router-view></router-view>
    </div>
  </div>
</template>
 
<script>
  export default {
 
    data() {
      return {};
    },
    computed: {},
    watch: {},
    created() {},
    methods: {}
  };
</script>

<style scoped>
  .head {
    display: flex;
    width: 100%;
    text-align: center;
    border-bottom: 5px solid #999;
  }
  .head a {
    flex: 1;
    text-decoration: none;
    padding: 20px 0;
    font-size: 27px;
    color: #000;
  }
  .body {
    margin-top: 10px;
    font-size: 27px;
  }
  .router-link-exact-active {
    color: red !important;
  }
</style>